package com.heima.comment.dao;

import com.heima.model.comment.pojos.Comment;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;


public interface CommentRepository extends MongoRepository<Comment, String> {


//    List<Comment> findAllByPublishTimeBeforeAndArticleIdOrderByPublishTimeDesc(Date publishTime, long articleId, Pageable pageable);
//    List<Comment> findAllByPublishTimeBeforeAndArticleId(Date publishTime, long articleId, Pageable pageable);
//
//    /**
//     * @param minDate
//     * @param parentId
//     * @param pageable
//     * @return
//     */
//    List<Comment> findAllByPublishTimeBeforeAndParentIdOrderByPublishTimePublishTimeDesc(Date publishTime, String parentId, Pageable pageable);

}
